VERSION 5.00
Begin VB.Form PartnerForm 
   Appearance      =   0  'Flat
   BackColor       =   &H80000005&
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   9000
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   12000
   LinkTopic       =   "Form1"
   ScaleHeight     =   9000
   ScaleWidth      =   12000
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   Begin VCT.ReturnVisit ReturnVisit1 
      Height          =   2895
      Left            =   720
      TabIndex        =   5
      Top             =   4560
      Width           =   6495
      _ExtentX        =   11456
      _ExtentY        =   5106
   End
   Begin VCT.ClientReception Client 
      Height          =   4095
      Left            =   6120
      TabIndex        =   4
      Top             =   360
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   7223
   End
   Begin VCT.ClientReception Partner 
      Height          =   4095
      Left            =   360
      TabIndex        =   3
      Top             =   360
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   7223
   End
   Begin VB.CommandButton Clear_Button 
      Caption         =   "Clear"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   2
      Top             =   5160
      Visible         =   0   'False
      Width           =   1935
   End
   Begin VB.CommandButton Next_Button 
      Caption         =   "Next"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      TabIndex        =   1
      Top             =   6360
      Width           =   1935
   End
   Begin VB.CommandButton Cancel_Button 
      BackColor       =   &H008080FF&
      Caption         =   "Cancel"
      BeginProperty Font 
         Name            =   "Arial Narrow"
         Size            =   20.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   9600
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   7560
      Width           =   1935
   End
End
Attribute VB_Name = "PartnerForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim SelectedPartner As Object
Dim ClientCodeString As String

Private Sub Cancel_Button_Click()
   RegMenuForm.Show
   Unload Me
End Sub

Private Sub Form_Load()
   Next_Button.Enabled = False
   Client.ClientSex = Sex
   Client.ReturnVisit = RETURNV
   Client.NewClientCode = NEWCODE
   Client.ClientCodeEnabled = True
   Client.ClientCode = CLIENTCO
   Client.SessionType = SESSTYPE
   Client.ShowCoupleDetails
   
   Partner.ClientSex = P_SEX
   Partner.EnableRVStar
   Partner.SessionType = P_SESSTYPE
   Partner.ShowCoupleDetails
   Partner.PartnerCode = P_PARTCODE
   
End Sub

Private Sub Next_Button_Click()
   'Changed this on 15-JUL-2005 to accommodate for differences betweeb MACRO and LIGHTHOUSE
   If ORGANIZATION = "MACRO" Then
      If P_RETURNV = "0" Then
         CoupleCodeForm.Show
      Else
         PartnerNCCForm.Show
      End If
   Else
      PartnerAddressForm.Show
   End If
   Unload Me
End Sub

Private Sub ReturnVisit1_SelectionMade()
   P_RETURNV = ReturnVisit1.ClientReturnVisit
   Partner.ReturnVisit = P_RETURNV
   If P_RETURNV = "0" Then 'Not a return visit for the partner
      P_NEWCODE = "1"
      Partner.NewClientCode = P_NEWCODE
      P_CLIENTCO = GetNextClientCode + 1
     ' NewNextClientCode = NewNextClientCode + 1
      PARTCODE = P_CLIENTCO
   End If
   Next_Button.Enabled = True
End Sub
